global sliderLocTable, libraryPath, lastPoped, nextRepeatTime, RepeatSpeed
if not (the quickTimePresent) then
alert("Quicktime has not been detected on your system." & " Only S, B amd V catagories will be available." & " To obtain the latest version of Quicktime for your systen, go to:" & RETURN & RETURN & "http://apple.com/quicktime/sw/")
end if
set nextRepeatTime to 0
set RepeatSpeed to 0
set lastPoped to 0
if the machineType = 256 then
set the itemDelimiter to "\"
else
set the itemDelimiter to ":"
end if
set volume to item 1 to the number of items in the pathName - 2 of the pathName
set libraryPath to volume & the itemDelimiter & "Library" & the itemDelimiter
set the fileName of castLib "sounds.cst" to pathName() & "sounds.cst"
set sliderLocTable to value(field "sliderTable")
set the floatPrecision to 1
if the machineType = 256 then
set the foreColor of member "info" to 245
set the backcolor of member "info" to 256
else
set the foreColor of member "info" to 32700
set the backcolor of member "info" to 0
end if
put EMPTY into field "info"
set the visible of sprite 22 to 0
set the visible of sprite 23 to 0
set the itemDelimiter to ","
set the floatPrecision to 2
end
on stopMovie
put " " into field "caslibname"
put " " into field "info"
set the loop of member "MovieMember1" to 0
set the loop of member "MovieMember2" to 0
end
on installObject
global currentCatagory
if currentCatagory = "BitMap" then
copySetToFile()
else
if currentCatagory = "Vector" then
set filePath to vectorSourceFilePath()
else
set filePath to the fileName of the member of sprite 52
end if
if the machineType = 256 then
set the itemDelimiter to "\"
else
set the itemDelimiter to ":"
end if
set fileName to the last item in filePath
set the itemDelimiter to ","
InstallFile(fileName, filePath)
end if
end
on vectorSourceFilePath
global ibcleafnum, ibcleaflist, libraryPath
if the machineType = 256 then
set XX to "\"
else
set XX to ":"
end if
set the itemDelimiter to "."
set sourceFileFolderNname to item 1 of line ibcleafnum of ibcleaflist & ".fla"
set the itemDelimiter to ","
set filePath to libraryPath & "Vector" & XX & "editable" & XX & sourceFileFolderNname
return filePath
end
on installSoundFile fileName
global libraryPath
if the machineType = 256 then
set the itemDelimiter to "\"
set FileExtension to ".wav"
else
set the itemDelimiter to ":"
set FileExtension to ".aiff"
end if
set filePath to libraryPath & "Sounds" & the itemDelimiter & fileName & FileExtension
set the itemDelimiter to ","
InstallFile(fileName & FileExtension, filePath)
end
on copySetToFile
global ibccdpath
if the memberNum of sprite 52 < 1 then
put "copySetToFile: sprite 52 not currently valid bitmap, bailing..."
exit
end if
set srclib to the castLibNum of sprite 52
set srcmem to leadmem(the memberNum of sprite 52, srclib)
if the machineType = 256 then
set targetPath to getDestinationPath(stripExtension(the name of member srcmem of castLib srclib) & ".bmp")
else
set targetPath to getDestinationPath(Stripdot(the name of member srcmem of castLib srclib) & ".pic")
end if
if targetPath <> EMPTY then
if the runMode = "Author" then
if the machineType = 256 then
openXLib(pathName() & "f3xTest.x32")
else
openXLib(pathName() & "f3Export (author only)")
end if
else
if the machineType = 256 then
openXLib(pathName() & "f3Export.x32")
else
openXLib(pathName() & "f3Export")
end if
end if
cursor(4)
repeat with i = srcmem to srcmem + 128
if the type of member i of castLib srclib <> #bitmap then
exit repeat
end if
if the machineType = 256 then
set status to f3ExportBMP(member i of castLib srclib, targetPath & stripExtension(the name of member i of castLib srclib) & ".BMP")
else
set status to f3ExportPict(member i of castLib srclib, targetPath & Stripdot(the name of member i of castLib srclib) & ".pic")